/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * VenOrdeTAxi.java
 *
 * Created on May 18, 2010, 1:27:18 PM
 */

package View;

import java.awt.Image;
import java.awt.Toolkit;

/**
 *
 * @author Scott
 */
public class VenOrdeTAxi extends javax.swing.JFrame {

    /** Creates new form VenOrdeTAxi */
    public VenOrdeTAxi() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel2 = new View.panelDefondo("fondo.jpg");
        jP_Superior = new View.panelDefondo("fondo3.png");
        jButton_Aceptar = new javax.swing.JButton();
        jButton_Cancelar = new javax.swing.JButton();
        jComboBox_NumeroPersonas = new javax.swing.JComboBox();
        jL_NumeroPasajeros = new javax.swing.JLabel();
        jL_DatosServicio = new javax.swing.JLabel();
        jL_Ruta2 = new javax.swing.JLabel();
        jB_Cancelar1 = new javax.swing.JButton();
        jL_OrigenRuta1 = new javax.swing.JLabel();
        jComboB_OrigenRuta1 = new javax.swing.JComboBox();
        jT_DestinoEspe = new javax.swing.JTextField();
        jL_DestinoRuta1 = new javax.swing.JLabel();
        jComboB_DestinoRuta1 = new javax.swing.JComboBox();
        jT_DestinoEspe1 = new javax.swing.JTextField();
        jB_Atras2 = new javax.swing.JButton();

        setTitle("Ordenar Taxi");
        setIconImage(getIconImage());

        jPanel2.setBackground(new java.awt.Color(204, 204, 204));

        jP_Superior.setBackground(new java.awt.Color(102, 102, 102));

        javax.swing.GroupLayout jP_SuperiorLayout = new javax.swing.GroupLayout(jP_Superior);
        jP_Superior.setLayout(jP_SuperiorLayout);
        jP_SuperiorLayout.setHorizontalGroup(
            jP_SuperiorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 631, Short.MAX_VALUE)
        );
        jP_SuperiorLayout.setVerticalGroup(
            jP_SuperiorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 104, Short.MAX_VALUE)
        );

        jButton_Aceptar.setText("Aceptar");

        jButton_Cancelar.setText("Cancelar");

        jComboBox_NumeroPersonas.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4" }));

        jL_NumeroPasajeros.setFont(new java.awt.Font("Vani", 1, 12));
        jL_NumeroPasajeros.setForeground(new java.awt.Color(255, 255, 255));
        jL_NumeroPasajeros.setText("Numero de Pasajeros");

        jL_DatosServicio.setFont(new java.awt.Font("Vani", 1, 12));
        jL_DatosServicio.setForeground(new java.awt.Color(255, 255, 255));
        jL_DatosServicio.setText("Datos Servicio");

        jL_Ruta2.setFont(new java.awt.Font("Vani", 1, 12));
        jL_Ruta2.setForeground(new java.awt.Color(255, 255, 255));
        jL_Ruta2.setText("Ruta:");

        jB_Cancelar1.setText("Factura");
        jB_Cancelar1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB_Cancelar1ActionPerformed(evt);
            }
        });

        jL_OrigenRuta1.setFont(new java.awt.Font("Vani", 1, 12));
        jL_OrigenRuta1.setForeground(new java.awt.Color(255, 255, 255));
        jL_OrigenRuta1.setText("Origen");

        jComboB_OrigenRuta1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Chacao", "Caricuao", "La California", "Sabana Grande", " " }));
        jComboB_OrigenRuta1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboB_OrigenRuta1ActionPerformed(evt);
            }
        });

        jL_DestinoRuta1.setFont(new java.awt.Font("Vani", 1, 12));
        jL_DestinoRuta1.setForeground(new java.awt.Color(255, 255, 255));
        jL_DestinoRuta1.setText("Destino");

        jComboB_DestinoRuta1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Chacaito", "Montalban", "El Cafetal", "La Urbina" }));

        jB_Atras2.setText("Atras");
        jB_Atras2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB_Atras2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jL_DatosServicio)
                    .addComponent(jL_Ruta2)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jL_NumeroPasajeros)
                        .addGap(8, 8, 8)
                        .addComponent(jComboBox_NumeroPersonas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jButton_Aceptar)
                        .addGap(8, 8, 8)
                        .addComponent(jButton_Cancelar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jB_Cancelar1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jB_Atras2, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(313, Short.MAX_VALUE))
            .addComponent(jP_Superior, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jL_OrigenRuta1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jComboB_OrigenRuta1, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jT_DestinoEspe, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jL_DestinoRuta1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jComboB_DestinoRuta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jT_DestinoEspe1, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(65, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addComponent(jP_Superior, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jL_DatosServicio, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addComponent(jL_Ruta2, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jL_OrigenRuta1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboB_OrigenRuta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboB_DestinoRuta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jL_DestinoRuta1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jT_DestinoEspe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jT_DestinoEspe1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jL_NumeroPasajeros, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBox_NumeroPersonas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(25, 25, 25)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton_Aceptar)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton_Cancelar)
                        .addComponent(jB_Cancelar1)
                        .addComponent(jB_Atras2)))
                .addContainerGap(28, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-647)/2, (screenSize.height-328)/2, 647, 328);
    }// </editor-fold>//GEN-END:initComponents

    private void jComboB_OrigenRuta1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboB_OrigenRuta1ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jComboB_OrigenRuta1ActionPerformed

    private void jB_Cancelar1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB_Cancelar1ActionPerformed
        VenMuesFactura venfactura = new VenMuesFactura();
        venfactura.setVisible(true);
}//GEN-LAST:event_jB_Cancelar1ActionPerformed

    private void jB_Atras2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB_Atras2ActionPerformed
       this.dispose();
    }//GEN-LAST:event_jB_Atras2ActionPerformed
  @Override
    public Image getIconImage() {
        Image retValue = Toolkit.getDefaultToolkit().
                getImage(ClassLoader.getSystemResource("View/taxis [1600x1200].png"));


        return retValue;
    }
    /**
    * @param args the command line arguments
    */
 

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jB_Atras2;
    private javax.swing.JButton jB_Cancelar1;
    private javax.swing.JButton jButton_Aceptar;
    private javax.swing.JButton jButton_Cancelar;
    private javax.swing.JComboBox jComboB_DestinoRuta1;
    private javax.swing.JComboBox jComboB_OrigenRuta1;
    private javax.swing.JComboBox jComboBox_NumeroPersonas;
    private javax.swing.JLabel jL_DatosServicio;
    private javax.swing.JLabel jL_DestinoRuta1;
    private javax.swing.JLabel jL_NumeroPasajeros;
    private javax.swing.JLabel jL_OrigenRuta1;
    private javax.swing.JLabel jL_Ruta2;
    private javax.swing.JPanel jP_Superior;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JTextField jT_DestinoEspe;
    private javax.swing.JTextField jT_DestinoEspe1;
    // End of variables declaration//GEN-END:variables

}
